/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package units;

/**
 *
 * @author jamie
 */
public enum DiseaseStage {

    PRE(-1000, -1),
    ACUTE(0, 28),
    CHRONIC(29,1000),
    POST(0, 1000);

    private final int earliest;
    private final int latest;


    private DiseaseStage(int earliest, int latest) {
        this.earliest = earliest;
        this.latest = latest;
    }

    public int getEarliest() {
        return earliest;
    }

    public int getLatest() {
        return latest;
    }


    
    public boolean hasStage(int timePoint){
       
       if(timePoint>=this.earliest && timePoint<=this.latest){
            return true;
       }
        
        return false;
    }





}
